package kr.ac.konkuk.dblab.point.test.utils;

import java.io.File;
import java.io.IOException;

import org.apache.commons.io.FileUtils;

public class PointGenerator {
	public static void main(String []args) throws IOException {
		double left = 0, top = 300, right = 300, bottom = 0;
		int count = 100000;
		
		StringBuilder sb = new StringBuilder(1024);
		
		for (int i = 0 ; i < count ; ++i) {
			sb.append(Math.random() * right).append(',').append(Math.random() * top);
			
			if (i != count - 1) {
				sb.append('\n');
			}
		}
		
//		System.out.print(sb.toString());
		FileUtils.writeStringToFile(new File("/Users/JCooky/Desktop/a.txt"), sb.toString(), "UTF-8");
	}
}
